<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: wh110
  Date: 2021/11/23
  Time: 14:03
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<jsp:include page="top.jsp"></jsp:include>
<form id="form" action="updateUser2" method="post" enctype="multipart/form-data"/>
    <table cellspacing="0" width="600" height="400" align="center" bgcolor="#ffe4c4">
        <caption>
            <h2>学生修改</h2>
        </caption>
        <input type="hidden" name="id" value="${s.id}">
        <tr>
            <td align="right">用户名:</td>
            <td><input type="text" name="name" placeholder="请输入用户名" value="${s.name}"/></td>
        </tr>
        <tr>
            <td align="right">密码:</td>
            <td><input type="password" name="pwd" placeholder="请输入密码" value="${s.pwd}"/></td>
        </tr>
        <tr>
            <td align="right" >性别:</td>
            <td>男<input type="radio" name="sex" value="0" <c:if test="${s.sex==0}">checked</c:if>>
                女<input type="radio" name="sex" value="1"<c:if test="${s.sex==1}">checked</c:if>>
            </td>
        </tr>
        <tr>
            <td align="right">手机号:</td>
            <td><input type="text" name="tel" placeholder="请输入手机号" value="${s.tel}"/></td>
        </tr>
        <tr>
            <td align="right">生日:</td>
            <td><input type="date" name="bir" placeholder="请输入生日" value="${s.bir}"/></td>
        </tr>
        <tr>
            <td align="right">头像:</td>
            <td>
                <input type="hidden" name="spic" value="${s.spic}"/>
                <img src="/pic/${s.spic}" height="100px"/><br/>
                <input type="file" name="newPic"/>
            </td>
        </tr>
        <tr>
            <td align="center" colspan="2"><input type="submit" value="添加" size="5"/></td>
        </tr>
    </table>
</body>
</html>
